package com.yke.formularios;

import java.io.Serializable;

import com.vaadin.ui.TextField;
import com.vaadin.ui.Button;
import com.vaadin.ui.Form;
import com.vaadin.ui.HorizontalLayout;

/**
 * @author ykesbaoui
 *
 */
public class PersonForm extends Form implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5072562651210342863L;
	private Button save = new Button("Guardar");
	private Button cancel = new Button ("Cancelar");
	
	public PersonForm() {
		addField("Nombre", new TextField("Nombre"));
		addField("Apellidos", new TextField("Apellidos"));
		HorizontalLayout footer = new HorizontalLayout();
		footer.setSpacing(true);
		footer.addComponent(save);
		footer.addComponent(cancel);
		setFooter(footer);
	}

}
